package com.ruyuan.dependency.product.service;

import com.ruyuan.dependency.product.entity.Sku;

import java.util.List;

/**
 * @author zhonghuashishan
 */
public interface SkuService {

    Sku queryById(Long skuId);

    List<Sku> queryByIds(List<Long> skuIds);

    boolean lockStock(Long skuId, Integer count);

    boolean releaseStock(Long skuId, Integer count);

    void save(Sku sku);
}